import { NativeModules } from 'react-native';

const asyncConcatAudioFiles = (
  audioFilePaths: string[],
  outFilePath: string
): Promise<void> => {
  if (NativeModules.File.asyncConcatAudioFiles) {
    return NativeModules.File.asyncConcatAudioFiles(
      audioFilePaths,
      outFilePath
    );
  }
  return new Promise((resolve, reject): void => {});
};

export default {
  asyncConcatAudioFiles
};
